package com.xxjz.sc.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@PropertySource(value = "classpath:es.properties")
@Component
@ConfigurationProperties(prefix = "es")
public class EsProperties {

    String ip;
    String port;
    String uuid;
    String url;

    public String getEsIp() {
        return ip;
    }

    public String getEsPort() {
        return port;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    //    public static void main(String[] args) {
//
//
//        System.out.println(esProperties.getEsIp());
//        System.out.println(esProperties.getEsPort());
//    }

}
